package com.wondertek.poms.init.vo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.groups.Default;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import com.wondertek.poms.common.utils.validate.GroupType;

import lombok.Data;

/**
 * <p><b>InitDataVo Description:</b> InitDataVo类  对应 init_data-初始化表  表</p>
 * @author 窦再兴
 * <p><b>DATE</b> 2020-03-30 18:57:15</p>
 */
 @Data
public class InitDataVo {
	
	/**
	 * <b>Fields</b> id : 主键ID
	 */
	@NotNull(message = "id不能为空", groups = {GroupType.Update.class})
	@NotNull(message = "主键ID不能为空", groups = {Default.class})
	private Long id;
	
	/**
	 * <b>Fields</b> platform : 牌照方标识
	 */
	@NotBlank(message = "牌照方标识不能为空", groups = {Default.class})
	@Length(message = "牌照方标识长度不能超过32个字节", max=32, groups = {Default.class, GroupType.Update.class})
	private String platform;
	
	/**
	 * <b>Fields</b> operation : 操作类型
	 */
	@NotBlank(message = "操作类型不能为空", groups = {Default.class})
	@Length(message = "操作类型长度不能超过2个字节", max=2, groups = {Default.class, GroupType.Update.class})
	private String operation;
	
	/**
	 * <b>Fields</b> contentId : 内容id
	 */
	@NotBlank(message = "内容id不能为空", groups = {Default.class})
	@Length(message = "内容id长度不能超过65535个字节", max=65535, groups = {Default.class, GroupType.Update.class})
	private String contentId;
	
	/**
	 * <b>Fields</b> strategyCodes : 策略名称策略代码
	 */
	@NotBlank(message = "策略名称策略代码不能为空", groups = {Default.class})
	@Length(message = "策略名称策略代码长度不能超过65535个字节", max=65535, groups = {Default.class, GroupType.Update.class})
	private String strategyCodes;
	
	/**
	 * <b>Fields</b> isMishitong : 是否咪视通
	 */
	@NotBlank(message = "是否咪视通不能为空", groups = {Default.class})
	@Length(message = "是否咪视通长度不能超过512个字节", max=512, groups = {Default.class, GroupType.Update.class})
	private String isMishitong;
	
	/**
	 * <b>Fields</b> accessPlatformId : 来源平台
	 */
	@Range(message = "来源平台的范围是[0-9]", min=0, max=9, groups = {Default.class})
	private Integer accessPlatformId;
	
	/**
	 * <b>Fields</b> createTime : 创建时间
	 */
	@NotBlank(message = "创建时间不能为空", groups = {Default.class})
	@Length(message = "创建时间长度不能超过25个字节", max=25, groups = {Default.class, GroupType.Update.class})
	private String createTime;
}